﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;

namespace BTServer
{
    public partial class ViewGraph : Form
    {
        public ViewGraph()
        {
            InitializeComponent();
            double yValue = 50.0;
            Random random = new Random();
            for (int pointIndex = 0; pointIndex < 20000; pointIndex++)
            {
                yValue = yValue + (random.NextDouble() * 10.0 - 5.0);
                chart1.Series["Series1"].Points.AddY(yValue);
            }

            // Set fast line chart type
            chart1.Series["Series1"].ChartType = SeriesChartType.FastLine;
        }
    }
}
